package Whitelistmodel

type WhiteItem struct {
	ID         int    `validate:"required"`
	Phone      string `validate:"required,e164"`
	RealName   string `db:"real_name" validate:"required"`
	ICard      string `validate:"required"`
	Invitation string `validate:"required"`
	UGroupID   int    `db:"ug_id"`
}

type Whitelist struct {
	WhiteList []*WhiteItem `validate:"required"`
}

type WhitelistIDs struct {
	IDs []int `validate:"unique,required"`
}

type PhoneList struct {
	PhoneList []string `validate:"unique,required"`
}

type Page struct {
	PageNo   int `validate:"required"`
	PageSize int `validate:"required"`
}

type WhiteListPage struct {
	UGroupID int `validate:"required"`
	Page
}
